<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LayUI</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>
    <button id="btn" type="button" class="layui-btn layui-btn-normal">一个标准的按钮</button>
    <a href="http://www.layui.itze.cn" class="layui-btn">一个可跳转的按钮</a>
    <script src="../layui/layui.js"></script>
    <script>
        layui.define(function(){
            let {$,layer} = layui;
            $("#btn").click(function(){
                layer.msg("你好");
            })
        });
    </script>
</body>
</html>